<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="../../../../../build/css/onsenui.css"/>
    <link rel="stylesheet" href="../../../../../build/css/onsen-css-components.css"/>

    <script src="../../../../../build/js/onsenui.js"></script>
    <script src="../../../node_modules/angular/angular.js"></script>
    <script src="../../../../../build/js/angular-onsenui.js"></script>
    <script src="../vendor/jquery.js"></script>
    <script>
      ons.bootstrap();

      function getState() {
        alert(mySwitch.checked ? 'ON' : 'OFF');
      }
    </script>

    <style>

    </style>
  </head>
  <body>

    <ons-page>
      <ons-toolbar>
        <div class="center">Switch Test</div>
      </ons-toolbar>

      <br>
      <div style="text-align: center">
        <ons-switch var="mySwitch"></ons-switch>
      </div>

      <br>

      <ons-list>
        <ons-list-item modifier="tappable" style="text-align: center">
          <ons-button modifier="quiet" onclick="getState()">Get Switch State</ons-button>
        </ons-liste-item>
      </ons-list>
    </ons-page>

  </body>
</html>
